<?php

/* ksqurl / includes / config.php */
/* configuration and settings */
/* updated feb 4 2011 by kevan */

// mysql connection info
define('MYSQL_USER', 'username');
define('MYSQL_PASS', 'password');
define('MYSQL_DB', 'ksqurl');
define('MYSQL_HOST', 'localhost');

// table for urls
define('URL_TABLE', 'urls');

// table for users
define('USER_TABLE', 'users');

// install path
define('INSTALL_PATH', 'http://domain.tld');

// URL to direct to when a link is disabled in the management UI.  Leave blank if you want the default page.
define('DISABLED_URL','');

// website name
define('APP_NAME', 'ksqUrl');

// List of acceptable charaters for the shorturl ids.
define('ALLOWED_CHARS', '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');

// Do you want linear short url keys or random ones?  0=Linear 1=Random
define('RANDOM_URLS', '1');

// Random short urls need a key length.  How long would you like them to be?
define('RANDOM_LENGTH', '4');

// Do you want the searchpage enabled?  0=Disabled 1=Enabled
define('SEARCH_PAGE', '1');

// Do you want to show random short URLs on the main page? 0=Disabled 1=Enabled
define ('RANDOM_DISPLAY', '1');

// true = use mod rewrite
// default = true
define('REWRITE', true);

// allowed url prefixes
$allowed_protocols = array('http:', 'https:', 'mailto:');

// uncomment to skip the protocol check
// $allowed_procotols = array();

// feature control
// All features enabled by default

// Play .mp3's using flash player
define('MPLAY', true);

// Play .flv's in flash player
define('VPLAY', true);

// Load images instead of forwarding
define('LIMAGE', true);

// PhishTank.com App key
define('PTKEY', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');

// Dissallowed custom names
$badcustom = array('$$$',
'~', 
'free', 
'save', 
'hormone', 
'ababa', 
'alprazolam', 
'ariset', 
'blackjack', 
'buspar', 
'butalbital', 
'carisoprodol', 
'casino', 
'celexa',
'cialis',
'citibank',
'cyberturf',
'didrex',
'dosage',
'dx1',
'ejaculation',
'ejactulation',
'fioricet',
'foreclosure',
'forex',
'freemegavideo',
'gambling',
'hochulexus',
'holdem',
'hollyvalance',
'homeloan',
'horny',
'insurance',
'keno',
'mortgage',
'nasonex',
'nfsautoloan',
'penis',
'phentermine',
'poker',
'porevo',
'prequalify',
'prozac',
'refinance',
'ringtone',
'ringtones',
'slots',
'sperm',
'straponclub',
'tramadol',
'ultram',
'viagra',
'xanax',
'yasamohuel',
'yigan999',
'zyban');

?>
